const sq = require('./index');
const { DataTypes } = require('sequelize');
const UserAuthPassword = sq.define('UserAuthPassword', {
    userId: {
        type: DataTypes.STRING,
        allowNull: false,
        unique: true,
        comment: "用户的id"
    },
    userAccount: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "用户登录的账户"
    },
    password: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "用户登录的密码"
    }
}, {
    freezeTableName: true,
});
//UserAuthPassword.sync({ force: true })
module.exports = UserAuthPassword;

